package com.rybbaby.tss.front.tssClassRoom.service.imp;

import com.rybbaby.tss.core.web.service.imp.BaseServiceImp;
import com.rybbaby.tss.front.tssClassRoom.dao.ITssClassRoomDao;
import com.rybbaby.tss.front.tssClassRoom.entity.TssClassRoom;
import com.rybbaby.tss.front.tssClassRoom.service.ITssClassRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @description 教室表数据库操作服务实现
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-09 下午11:54:00
 */
@Service
@Transactional
public class TssClassRoomServiceImp extends BaseServiceImp<TssClassRoom> implements ITssClassRoomService {

    @Autowired
    private ITssClassRoomDao dao;

    /**
     * 根据状态来修改教室信息
     *
     * @param targetDateId
     * @param isBlockUp
     * @return
     */
    @Override
    public Integer updateClassRoomByIsBlockUp(String targetDateId, Boolean isBlockUp) {
        return dao.updateClassRoomByIsBlockUp(targetDateId,isBlockUp);
    }
}
